<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
    <meta charset="UTF-8">
    <title>用户页</title>
    <meta name="page-view-size" content="1280*720">
    <link rel="stylesheet" href="../css/bases.css">
    <link rel="stylesheet" href="../css/logins.css">
    <script type="text/javascript" src="../lib/js/evm.js"></script>
    <script type="text/javascript" src="../lib/js/Evm_djyw.js"></script>
    <script type="text/javascript" src="../lib/js/key.js"></script>
    <script src="../lib/js/md5.js" type="text/javascript" charset="utf-8"></script>
    <script src="../lib/js/jquery-1.11.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../lib/js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/api.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/public.js" type="text/javascript" charet="utf-8"></script>

</head>

<body>
    <div class="crumbsTitle">个人中心</div>
    <div class="login-bg">
        <div class="user-bg">
            <p>用户头像：&nbsp;<img id="userImg" src="" alt=""></p>
            <p>用户名：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id='userName'></span></p>
            <p>用户手机：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id='userMobile'></span></p>
            <div id='userMain'>
                <div class="model">返回</div>
                <div class="model">切换用户</div>
            </div>
        </div>
    </div>
</body>
<script>
    if ($.cookie('TV_CST_NAME') && $.cookie('TV_CST_NAME') != 'null') {
        var mobile = $.cookie('TV_CST_MOBILE') == 'null' ? '暂无' : $.cookie('TV_CST_MOBILE')
        var img = $.cookie('TV_CST_HEADIMG') || './images/userHeader.png'
        $('#userImg').attr('src', img);
        $('#userName').html($.cookie('TV_CST_NAME'));
        $('#userMobile').html(mobile);
    } else {
        window.history.go(-1)
    }
    var modelIndex = {
        disUser: true,
        index: 0,//初始位置
        listName: 'model', //模块名称
        containerId: 'userMain'//包含模块的标签id
    }
    function direOpt(index, directive) {
        if (directive == "backwards" || directive == 'forwards') { //左
            index = index == 1 ? 0 : 1
        }
        return index;
    }

    function direEnter(index) {
        if (index == 0) {
            window.history.go(-1)
        } else {
            $.cookie('TV_CST_NAME', null, { path: '/' });
            $.cookie('TV_CST_HEADIMG', null, { path: '/' });
            $.cookie('TV_CST_MOBILE', null, { path: '/' });
            $.cookie('TV_CST_TOKEN', null, { path: '/' })
            window.location.href = './login.html'
        }
    }

</script>
<script src="../js/index.js"></script>

</html>